package com.letoken.platform.repo.repo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2023-06-07
 */
@Getter
@Setter
@TableName("app_ex_report")
@ApiModel(value = "AppExReport对象", description = "")
public class AppExReport extends Model<AppExReport> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("消息")
    @TableField("message")
    private String message;

    @ApiModelProperty("1：app异常信息  2：web异常信息")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("堆栈跟踪")
    @TableField("stack")
    private String stack;

    @ApiModelProperty("用户代理")
    @TableField("user_agent")
    private String userAgent;

    @ApiModelProperty("错误页面")
    @TableField("url")
    private String url;

    @ApiModelProperty("指纹")
    @TableField("murmur")
    private String murmur;

    @ApiModelProperty("手机品牌")
    @TableField("phone_brand")
    private String phoneBrand;

    @ApiModelProperty("时间戳")
    @TableField("timestamp_code")
    private Long timestampCode;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
